package cn.iocoder.yudao.module.promotion.groupon.pojo.dto;

import cn.iocoder.yudao.framework.business.basic.pojo.bo.TemplateParameter;
import cn.iocoder.yudao.framework.business.basic.pojo.dto.SaveDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  这里是文件说明
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/01/13
 */
@Data
public class AdminGrouponPackageSaveDTO extends SaveDTO {

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "招牌双人餐（小锅）")
    private String name;

    @Schema(description = "最少适用人数", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer minPeople;

    @Schema(description = "最多适用人数", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Integer maxPeople;

    @Schema(description = "购买须知，JSON格式", example = """
            [
               {"value":"周一,周二,周三,周四,周五","sort":0},
               {"value":"免预约","sort":1}
            ]
            """)
    private List<TemplateParameter> guidance;

    @Schema(description = "图集，第一张作为封面图", example = """
            ["http://example.local/1.jpg","http://example.local/2.jpg"]
            """)
    private List<String> picUrls;

    @Schema(description = "开关")
    private Boolean enabled;

}
